package com.wudi.estate.service.ownermanagement;

import com.wudi.estate.bean.ownermanagement.Personnel;

import java.util.List;

public interface PersonnelService {
    //查询全部业主数据
    List<Personnel> selectAll() throws Exception;

    //根据编号查询业主数据
    Personnel selectById(Personnel p) throws Exception;
    Personnel selectById(long id) throws Exception;
    //根据id修改信息
    void updateById(Personnel p) throws Exception;
    //根据id修改状态
    void updateStateById(Personnel p) throws Exception;
    //添加业主数据
    void insert(Personnel p) throws Exception;
    //模糊查询
    List<Personnel> selectByName(String name) throws Exception;
}
